package first

/**
  * Created by feng on 19/11/2018.
  */
class Dog {

  val id = 1
  private var name = "ii"

  def printName():Unit = {
    println(Dog.CONSTANT)
  }

}

object Dog{

  private val CONSTANT = "wangwang"

  def main(args: Array[String]): Unit = {
    val point = new Dog
    point.name
    point.printName()
  }
}
